<template>
  <div class="container">
    <h2>很抱歉，你访问的页面不存在！</h2>
    <img src="@/icons/404.svg" alt="404 error image" />
    <button @click="$router.push('/')">返回首页</button>
  </div>
</template>

<script>
export default {
  name: 'NotFound',
};
</script>

<style>
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

img {
  width: 30%;
  margin-bottom: 2rem;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

button:hover {
  background-color: #0062cc;
}
</style>